<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/lodash@4.17.4.js"></script>
</head>
<body>
    <script>
        _.times(5, function(){
            console.log(1)
        })
        console.log( _.random(15,20));

        var users = [  
            { 'user': 'fred', 'age': 48 },  
            { 'user': 'barney', 'age': 34 },  
            { 'user': 'fred', 'age': 40 },  
            { 'user': 'barney', 'age': 36 }  
        ];  
        // 以 `user` 升序排序 再  `age` 以降序排序。  
        console.log(_.orderBy(users, ['user', 'age'], ['asc', 'desc']));  
    </script>
</body>
</html>
